package interfaz;

import java.awt.Image;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.table.DefaultTableModel;
import negocios.Atributo_Propio;
import negocios.BusquedaPrendas;
import negocios.BusquedaPrendasLavanderia;
import negocios.Busqueda_Prenda;
import negocios.Busqueda_Prenda_Lavanderia;
import negocios.Clasificador;
import negocios.Clasificador_Prenda;
import negocios.Clasificadores;
import negocios.Color_Prenda;
import negocios.Colores;
import negocios.Estado_Prenda;
import negocios.Genero_Usuario;
import negocios.Generos;
import negocios.Medidas_Usuario;
import negocios.Prenda;
import negocios.Prendas;
import negocios.Registro_Medidas;
import negocios.Tipo_Prenda;
import negocios.Tipos_Prenda;
import negocios.Usuario;
import negocios.Usuarios;
import negocios.Valor;

import negocios.Registro_Logeo;
import negocios.Tiene_Atrib;
import negocios.Valores;
import negocios.ubicacion;
import negocios.ubicaciones;

import datos.BaseDeDatosDB;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import negocios.BusquedaConjunto;
import negocios.BusquedaConjuntos;
import negocios.BusquedaDefectosPrenda;
import negocios.BusquedaPrendasDefectos;
import negocios.Busqueda_Defectos_Prenda;
import negocios.Busqueda_Prenda_Defectos;

import org.jvnet.substance.SubstanceLookAndFeel;

public class VentanaUsuarios extends javax.swing.JFrame {

    public String cedula_usuario_actual; //AQUI SE VA A GUARDA LA CEDULA RECIBIDA
    Prenda unaPrenda = new Prenda();
    Prendas listaPrendas = new Prendas();
    Colores listaColores = new Colores();
    Tipos_Prenda listatipos = new Tipos_Prenda();
    Color_Prenda unColor = new Color_Prenda();
    Tipo_Prenda unTipo = new Tipo_Prenda();
    Estado_Prenda unEstado = new Estado_Prenda();
    String ruta = "";
    Genero_Usuario unGenero = new Genero_Usuario();
    Usuario unduenio = new Usuario();
    Usuarios listaUsers = new Usuarios();
    Registro_Medidas registroM = new Registro_Medidas();
    Medidas_Usuario medidasU = new Medidas_Usuario();
    Clasificador miClasificador = new Clasificador();
    Clasificadores listaClasificadores = new Clasificadores();
    Clasificador_Prenda unClasificaPrenda = new Clasificador_Prenda();
    Registro_Logeo unRegistro = new Registro_Logeo();
    Valor unvalor=new Valor();
    Generos listaGeneros=new Generos();
    Valores listavalores=new Valores();
    ubicaciones listaUbicaciones=new ubicaciones();
    ubicacion unaUbicacion=new ubicacion();
    Atributo_Propio unatributo=new Atributo_Propio();
    Tiene_Atrib unarelacionatributoTipo=new Tiene_Atrib();
    BusquedaPrendas prendasB = new BusquedaPrendas();
    BusquedaPrendasDefectos prendasD = new BusquedaPrendasDefectos();
    BusquedaDefectosPrenda prendaDf = new BusquedaDefectosPrenda();
    public VentanaUsuarios(String cedulaActual, Registro_Logeo rl) {// ESTE METODO ES RECIBIDO DESDE EL LOGUEO CON LA CEDULA DEL USUARIO
        JFrame.setDefaultLookAndFeelDecorated(true);
        SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.RavenGraphiteGlassSkin");
        SubstanceLookAndFeel.setCurrentWatermark("org.jvnet.substance.watermark.SubstanceWoodWatermark");
        cedula_usuario_actual = cedulaActual;// ESTO CAMBIA
        unRegistro = rl;
        initComponents();
        actualizaComboTipos();
        actualizaComboColores();
        actualizaUsers();
        actualizaCombosClasificadoresDeTodaVentana();
        actualizaComboGeneros();
        actualizaComboUbicaciones();
        actualizarPrendasUsuario();
        actualizarConjuntosUsuarios();
         actualizaUltimaTabla();
    }

    public VentanaUsuarios() {
        JFrame.setDefaultLookAndFeelDecorated(true);
        SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.RavenGraphiteGlassSkin");
        SubstanceLookAndFeel.setCurrentWatermark("org.jvnet.substance.watermark.SubstanceWoodWatermark");
        initComponents();
        actualizaComboTipos();
        actualizaComboColores();
        actualizaUsers();
        actualizaCombosClasificadoresDeTodaVentana();
        actualizaComboGeneros();
        actualizaComboUbicaciones();
         actualizaUltimaTabla();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Defectos = new javax.swing.ButtonGroup();
        TipoPrenda = new javax.swing.ButtonGroup();
        Baja = new javax.swing.ButtonGroup();
        Orden = new javax.swing.ButtonGroup();
        OpcionesUsuario = new javax.swing.JTabbedPane();
        Configurar_Perfil = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        txtCedulaUsuario = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        txtApodoUsuario = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        txtFechaUser = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        txtGeneroUsuario = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        FOTOuser = new javax.swing.JLabel();
        btnHabilitarEdicionUsuario = new javax.swing.JButton();
        btGuardarUsuario = new javax.swing.JButton();
        btnActualizarFotoUsuario = new javax.swing.JButton();
        comboGeneros = new javax.swing.JComboBox();
        jPanel3 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        txtFechaRegistroMedida = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        btnGuardarRegistroUsuario = new javax.swing.JButton();
        btnHistorialUsuario = new javax.swing.JButton();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        txtHombrosCinturaUsuario = new javax.swing.JTextField();
        txtCinturaRodillaUsuario = new javax.swing.JTextField();
        txtRodillaTobilloUsuario = new javax.swing.JTextField();
        txtPechoBustoUsuario = new javax.swing.JTextField();
        txtCinturaUsuario = new javax.swing.JTextField();
        txtCaderaUsuario = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        txtPesoUsuario = new javax.swing.JTextField();
        txtCalzadoUsuario = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        Buscador_Prendas = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblBusquedaPrendas = new javax.swing.JTable();
        lblCP = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jSlider3 = new javax.swing.JSlider();
        jButton14 = new javax.swing.JButton();
        jButton13 = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        rbt2 = new javax.swing.JRadioButton();
        rbt1 = new javax.swing.JRadioButton();
        rbt3 = new javax.swing.JRadioButton();
        rbt4 = new javax.swing.JRadioButton();
        rbt5 = new javax.swing.JRadioButton();
        rbt6 = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        fotoPrenda = new javax.swing.JLabel();
        jPanel8 = new javax.swing.JPanel();
        jLabel32 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jButton2 = new javax.swing.JButton();
        jPanel10 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tblPrendasSelecionadas = new javax.swing.JTable();
        jButton3 = new javax.swing.JButton();
        jButton20 = new javax.swing.JButton();
        jLabel33 = new javax.swing.JLabel();
        jPanel21 = new javax.swing.JPanel();
        jLabel49 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        ComboClasificadorGuardaRopa = new javax.swing.JComboBox();
        jLabel51 = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        jButton17 = new javax.swing.JButton();
        txtIDClasificadorPanelGuardaRopa = new javax.swing.JTextField();
        pnllPrendasUsuario = new javax.swing.JPanel();
        jButton15 = new javax.swing.JButton();
        jScrollPane11 = new javax.swing.JScrollPane();
        tblPrendasUsuario = new javax.swing.JTable();
        jLabel30 = new javax.swing.JLabel();
        Buscador_Conjuntos = new javax.swing.JPanel();
        jLabel34 = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tblConjUsuario = new javax.swing.JTable();
        jScrollPane12 = new javax.swing.JScrollPane();
        jTable8 = new javax.swing.JTable();
        jLabel12 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jPanel11 = new javax.swing.JPanel();
        FOTOconjunto = new javax.swing.JLabel();
        jPanel12 = new javax.swing.JPanel();
        FOTOprendaBUSQUEDAS = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jPanel13 = new javax.swing.JPanel();
        jTextField1 = new javax.swing.JTextField();
        jButton4 = new javax.swing.JButton();
        jSlider1 = new javax.swing.JSlider();
        ejm = new javax.swing.JLabel();
        jButton5 = new javax.swing.JButton();
        calificacionConjunto = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tblPC = new javax.swing.JTable();
        jLabel39 = new javax.swing.JLabel();
        jSlider2 = new javax.swing.JSlider();
        jLabel40 = new javax.swing.JLabel();
        calificacionPrendaConjunto = new javax.swing.JLabel();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        Dar_Baja = new javax.swing.JPanel();
        jLabel41 = new javax.swing.JLabel();
        jPanel14 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTable6 = new javax.swing.JTable();
        jRadioButton12 = new javax.swing.JRadioButton();
        jRadioButton13 = new javax.swing.JRadioButton();
        jButton21 = new javax.swing.JButton();
        jPanel16 = new javax.swing.JPanel();
        fotoPrendaBaja = new javax.swing.JLabel();
        jPanel15 = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTable7 = new javax.swing.JTable();
        jLabel42 = new javax.swing.JLabel();
        jPanel19 = new javax.swing.JPanel();
        jLabel47 = new javax.swing.JLabel();
        jRadioButton7 = new javax.swing.JRadioButton();
        jRadioButton8 = new javax.swing.JRadioButton();
        jButton16 = new javax.swing.JButton();
        jRadioButton9 = new javax.swing.JRadioButton();
        jPanel20 = new javax.swing.JPanel();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTable9 = new javax.swing.JTable();
        jLabel48 = new javax.swing.JLabel();
        jButton11 = new javax.swing.JButton();
        Lavanderia = new javax.swing.JPanel();
        jLabel44 = new javax.swing.JLabel();
        jPanel17 = new javax.swing.JPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        tblLavanderia = new javax.swing.JTable();
        jPanel18 = new javax.swing.JPanel();
        FOTOlavanderia = new javax.swing.JLabel();
        jButton12 = new javax.swing.JButton();
        Claisificador = new javax.swing.JPanel();
        jPanel22 = new javax.swing.JPanel();
        jLabel52 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jPanel23 = new javax.swing.JPanel();
        FOTOprenda = new javax.swing.JLabel();
        jButton18 = new javax.swing.JButton();
        txtTipoPrenda = new javax.swing.JTextField();
        txtColorP = new javax.swing.JTextField();
        comboTipoPrenda = new javax.swing.JComboBox();
        comboColores = new javax.swing.JComboBox();
        txtDescripcionPrenda = new javax.swing.JTextField();
        btnActualizarFotoUsuario1 = new javax.swing.JButton();
        btListaPrendas = new javax.swing.JButton();
        jPanel24 = new javax.swing.JPanel();
        jLabel57 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        txtTipoDescripcionMay = new javax.swing.JTextField();
        comboUbicacionesMay = new javax.swing.JComboBox();
        btnGuardaTipoPrendaConUbicacion = new javax.swing.JButton();
        txtUbicacionMay = new javax.swing.JTextField();
        jPanel25 = new javax.swing.JPanel();
        jLabel60 = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        txtAtributoMay = new javax.swing.JTextField();
        btnAtributoyTipo = new javax.swing.JButton();
        comboTipoPrendaMay = new javax.swing.JComboBox();
        txtIDcategoriaMay1 = new javax.swing.JTextField();
        jPanel26 = new javax.swing.JPanel();
        jLabel63 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        txtclasificador = new javax.swing.JTextField();
        btnGuardaClasificadores = new javax.swing.JButton();
        jPanel27 = new javax.swing.JPanel();
        jLabel65 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        txtvalor = new javax.swing.JTextField();
        txtIDclasificaMay1 = new javax.swing.JTextField();
        comboClasificadoresMay = new javax.swing.JComboBox();
        btnGuardaValores = new javax.swing.JButton();
        jPanel28 = new javax.swing.JPanel();
        jLabel68 = new javax.swing.JLabel();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        txtIDclasificaMay2 = new javax.swing.JTextField();
        txtIDcategoriaMay = new javax.swing.JTextField();
        ComboTipoPrendaOtroMay = new javax.swing.JComboBox();
        comboClasificadorOTroMay = new javax.swing.JComboBox();
        btnClasificadorPrenda = new javax.swing.JButton();
        jPanel29 = new javax.swing.JPanel();
        jScrollPane10 = new javax.swing.JScrollPane();
        tablaFinalPrendas = new javax.swing.JTable();
        jLabel56 = new javax.swing.JLabel();
        jLabel71 = new javax.swing.JLabel();
        jLabel72 = new javax.swing.JLabel();
        comboClasificadorAbajoMay = new javax.swing.JComboBox();
        comboValoresMay = new javax.swing.JComboBox();
        jButton19 = new javax.swing.JButton();
        txtclasificadorAbajoMay = new javax.swing.JTextField();
        txtIDvalorMay = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setBackground(new java.awt.Color(153, 153, 153));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        OpcionesUsuario.setTabPlacement(javax.swing.JTabbedPane.LEFT);
        OpcionesUsuario.setToolTipText("");
        OpcionesUsuario.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                OpcionesUsuarioFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                OpcionesUsuarioFocusLost(evt);
            }
        });

        Configurar_Perfil.setToolTipText("Configurar Perfil");

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel2.setText("Configuracion de Perfil");

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel3.setText("Cedula:");

        txtCedulaUsuario.setEditable(false);

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel4.setText("Apodo:");

        txtApodoUsuario.setEditable(false);

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel6.setText("Fecha  Nacimiento");

        txtFechaUser.setEditable(false);

        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel7.setText("Genero:");

        txtGeneroUsuario.setEditable(false);

        jPanel2.setBackground(new java.awt.Color(204, 204, 255));

        FOTOuser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        FOTOuser.setText("FOTO");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOuser, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOuser, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnHabilitarEdicionUsuario.setText("Habilitar Edicion");
        btnHabilitarEdicionUsuario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnHabilitarEdicionUsuarioMouseClicked(evt);
            }
        });
        btnHabilitarEdicionUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHabilitarEdicionUsuarioActionPerformed(evt);
            }
        });

        btGuardarUsuario.setText("Guardar Cambios");
        btGuardarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btGuardarUsuarioActionPerformed(evt);
            }
        });

        btnActualizarFotoUsuario.setText("Actualizar Foto");
        btnActualizarFotoUsuario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnActualizarFotoUsuarioMouseClicked(evt);
            }
        });

        comboGeneros.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboGeneros.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboGenerosMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(btnHabilitarEdicionUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtApodoUsuario, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(txtFechaUser)
                                    .addComponent(txtCedulaUsuario)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(txtGeneroUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(comboGeneros, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(0, 0, Short.MAX_VALUE))))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(70, 70, 70)
                        .addComponent(btGuardarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 95, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnActualizarFotoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(70, 70, 70))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(txtCedulaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(txtApodoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(txtFechaUser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(txtGeneroUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboGeneros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnHabilitarEdicionUsuario))
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btGuardarUsuario)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnActualizarFotoUsuario)
                .addContainerGap(56, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel10.setText("Fecha de Registro:");

        txtFechaRegistroMedida.setEditable(false);

        jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel11.setText("Anio/Mes/Dia");

        btnGuardarRegistroUsuario.setText("Guardar Registro");
        btnGuardarRegistroUsuario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnGuardarRegistroUsuarioMouseClicked(evt);
            }
        });
        btnGuardarRegistroUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarRegistroUsuarioActionPerformed(evt);
            }
        });

        btnHistorialUsuario.setText("Ver Historial Registro Medidas");
        btnHistorialUsuario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnHistorialUsuarioMouseClicked(evt);
            }
        });
        btnHistorialUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHistorialUsuarioActionPerformed(evt);
            }
        });

        jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel14.setText("Altura de los Hombros a la Cintura:");

        jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel15.setText("Altura de la Cintura a la Rodilla:");

        jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel16.setText("Altura de la Rodilla al Tobillo:");

        jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel17.setText("Dimension de Pecho/Busto:");

        jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel18.setText("Cintura:");

        jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel19.setText("Cadera:");

        jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        jLabel20.setText("Peso:");

        txtHombrosCinturaUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtHombrosCinturaUsuarioActionPerformed(evt);
            }
        });

        jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel21.setText("Calzado:");

        jLabel22.setText("cm");

        jLabel23.setText("cm");

        jLabel24.setText("cm");

        jLabel25.setText("cm");

        jLabel26.setText("cm");

        jLabel27.setText("cm");

        jLabel28.setText("kg");

        jLabel29.setText("talla USA");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                            .addComponent(txtFechaRegistroMedida))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(btnHistorialUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(btnGuardarRegistroUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(txtPechoBustoUsuario, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
                            .addComponent(txtRodillaTobilloUsuario, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtCinturaRodillaUsuario, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtHombrosCinturaUsuario, javax.swing.GroupLayout.Alignment.LEADING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel22)
                            .addComponent(jLabel23)
                            .addComponent(jLabel24)
                            .addComponent(jLabel25))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 182, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(txtPesoUsuario, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtCaderaUsuario, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtCinturaUsuario, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtCalzadoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel29)
                            .addComponent(jLabel28)
                            .addComponent(jLabel27)
                            .addComponent(jLabel26))))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(btnGuardarRegistroUsuario)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnHistorialUsuario))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(txtFechaRegistroMedida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel11)))
                .addGap(26, 26, 26)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel14)
                            .addComponent(txtHombrosCinturaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15)
                            .addComponent(txtCinturaRodillaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel23))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel16)
                            .addComponent(txtRodillaTobilloUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel24))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17)
                            .addComponent(txtPechoBustoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel25)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCinturaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel26))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel19)
                            .addComponent(txtCaderaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel27))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel20)
                            .addComponent(txtPesoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel28))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel21)
                            .addComponent(txtCalzadoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel29))))
                .addGap(104, 104, 104))
        );

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel9.setText("Registro de Medidas");

        javax.swing.GroupLayout Configurar_PerfilLayout = new javax.swing.GroupLayout(Configurar_Perfil);
        Configurar_Perfil.setLayout(Configurar_PerfilLayout);
        Configurar_PerfilLayout.setHorizontalGroup(
            Configurar_PerfilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Configurar_PerfilLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(Configurar_PerfilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(Configurar_PerfilLayout.createSequentialGroup()
                        .addGroup(Configurar_PerfilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel9))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        Configurar_PerfilLayout.setVerticalGroup(
            Configurar_PerfilLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Configurar_PerfilLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        OpcionesUsuario.addTab("", new javax.swing.ImageIcon(getClass().getResource("/icono/inoco-configurar-perfil.png")), Configurar_Perfil); // NOI18N

        Buscador_Prendas.setToolTipText("Buscador de Prendas");

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel8.setText("Lista de Prendas disponibles para el Usuario");

        jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tblBusquedaPrendas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Select", "Id", "Descripcion", "Tipo", "Estado", "Color", "Usos", "Ultimo Uso"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblBusquedaPrendas);

        lblCP.setBackground(new java.awt.Color(204, 204, 204));

        jLabel46.setText("Calificacion:");

        jSlider3.setMaximum(5);
        jSlider3.setMinimum(1);
        jSlider3.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jSlider3StateChanged(evt);
            }
        });

        jButton14.setText("Calificar Seleccionadas");
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        jButton13.setText("Seleccionar");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jSlider3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel46)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCP, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton13)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jSlider3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel46, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblCP, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton14)
                        .addComponent(jButton13)))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        rbt2.setBackground(new java.awt.Color(207, 204, 201));
        TipoPrenda.add(rbt2);
        rbt2.setText("Numero de Usos");
        rbt2.setOpaque(false);

        rbt1.setBackground(new java.awt.Color(207, 204, 201));
        TipoPrenda.add(rbt1);
        rbt1.setText("Fechas de Uso");
        rbt1.setOpaque(false);

        rbt3.setBackground(new java.awt.Color(207, 204, 201));
        TipoPrenda.add(rbt3);
        rbt3.setText("Con Defectos");
        rbt3.setOpaque(false);

        rbt4.setBackground(new java.awt.Color(207, 204, 201));
        TipoPrenda.add(rbt4);
        rbt4.setText("Sin Defectos");
        rbt4.setOpaque(false);

        rbt5.setBackground(new java.awt.Color(207, 204, 201));
        TipoPrenda.add(rbt5);
        rbt5.setText("Individuales");
        rbt5.setOpaque(false);

        rbt6.setBackground(new java.awt.Color(207, 204, 201));
        TipoPrenda.add(rbt6);
        rbt6.setText("Compartidas");
        rbt6.setOpaque(false);

        jButton1.setText("Buscar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jLabel5.setText("Busquedas Especificas");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(rbt6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(rbt5)
                        .addComponent(rbt1)
                        .addComponent(rbt2)
                        .addComponent(rbt3)
                        .addComponent(rbt4)
                        .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jLabel5))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbt1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbt2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbt3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbt4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbt5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbt6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton1)
                .addContainerGap())
        );

        jPanel7.setBackground(new java.awt.Color(230, 226, 222));

        fotoPrenda.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        fotoPrenda.setText("Foto");

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(fotoPrenda, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(fotoPrenda, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jLabel32.setText("Prendas en Posesion");

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Select", "Id", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane2.setViewportView(jTable2);

        jButton2.setText("Devolver y Lavar Seleccionadas");

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel32)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel32)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton2)
                .addContainerGap())
        );

        jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tblPrendasSelecionadas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Select", "Id", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane3.setViewportView(tblPrendasSelecionadas);

        jButton3.setText("Tomar Prendas");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton20.setText("Limpiar");
        jButton20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton20ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addComponent(jButton20)
                        .addGap(110, 110, 110)
                        .addComponent(jButton3)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton20))
                .addContainerGap())
        );

        jLabel33.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel33.setText("Prendas Seleccionadas");

        jLabel49.setText("Clasificadores");

        jLabel50.setText("Clasificador:");

        ComboClasificadorGuardaRopa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        ComboClasificadorGuardaRopa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ComboClasificadorGuardaRopaMouseClicked(evt);
            }
        });

        jLabel51.setText("Valor:");

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jButton17.setText("Clasificar");

        txtIDClasificadorPanelGuardaRopa.setEditable(false);

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ComboClasificadorGuardaRopa, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel21Layout.createSequentialGroup()
                        .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel49)
                            .addComponent(jLabel51)
                            .addGroup(jPanel21Layout.createSequentialGroup()
                                .addComponent(jLabel50)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtIDClasificadorPanelGuardaRopa, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 1, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel49)
                .addGap(18, 18, 18)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel50)
                    .addComponent(txtIDClasificadorPanelGuardaRopa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ComboClasificadorGuardaRopa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel51)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton17)
                .addContainerGap())
        );

        pnllPrendasUsuario.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jButton15.setText("Compartir Seleccionadas");
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        tblPrendasUsuario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Select", "Id", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane11.setViewportView(tblPrendasUsuario);

        javax.swing.GroupLayout pnllPrendasUsuarioLayout = new javax.swing.GroupLayout(pnllPrendasUsuario);
        pnllPrendasUsuario.setLayout(pnllPrendasUsuarioLayout);
        pnllPrendasUsuarioLayout.setHorizontalGroup(
            pnllPrendasUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnllPrendasUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnllPrendasUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnllPrendasUsuarioLayout.createSequentialGroup()
                        .addGap(0, 142, Short.MAX_VALUE)
                        .addComponent(jButton15))
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addContainerGap())
        );
        pnllPrendasUsuarioLayout.setVerticalGroup(
            pnllPrendasUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnllPrendasUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton15)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel33)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pnllPrendasUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel33)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnllPrendasUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jLabel30.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel30.setText("Opciones de Busqueda");

        javax.swing.GroupLayout Buscador_PrendasLayout = new javax.swing.GroupLayout(Buscador_Prendas);
        Buscador_Prendas.setLayout(Buscador_PrendasLayout);
        Buscador_PrendasLayout.setHorizontalGroup(
            Buscador_PrendasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Buscador_PrendasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(Buscador_PrendasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(Buscador_PrendasLayout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jLabel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        Buscador_PrendasLayout.setVerticalGroup(
            Buscador_PrendasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Buscador_PrendasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel8)
                .addGap(1, 1, 1)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );

        OpcionesUsuario.addTab("", new javax.swing.ImageIcon(getClass().getResource("/icono/icono-buscar-prendas.png")), Buscador_Prendas); // NOI18N

        Buscador_Conjuntos.setToolTipText("Buscador de Conjuntos");

        jLabel34.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel34.setText("Conjuntos del Usuario");

        jPanel9.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tblConjUsuario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Id", "Descripcion", "Ultima Calificacion", "Ultimo Uso"
            }
        ));
        tblConjUsuario.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblConjUsuarioMouseClicked(evt);
            }
        });
        jScrollPane4.setViewportView(tblConjUsuario);

        jTable8.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Select", "Id", "Fecha"
            }
        ));
        jScrollPane12.setViewportView(jTable8);

        jLabel12.setText("Registros");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel9Layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel35.setText("Foto del Conjunto");

        jPanel11.setBackground(new java.awt.Color(204, 204, 204));

        FOTOconjunto.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        FOTOconjunto.setText("Foto Conjunto");

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOconjunto, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOconjunto, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel12.setBackground(new java.awt.Color(204, 204, 204));

        FOTOprendaBUSQUEDAS.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        FOTOprendaBUSQUEDAS.setText("Foto Prenda");

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOprendaBUSQUEDAS, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOprendaBUSQUEDAS, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                .addContainerGap())
        );

        jLabel36.setText("Foto de Prenda");

        jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jButton4.setText("Comentar Conjunto");

        jSlider1.setMaximum(5);
        jSlider1.setMinimum(1);
        jSlider1.setPaintTicks(true);
        jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jSlider1StateChanged(evt);
            }
        });

        ejm.setText("Calificacion Conjunto");

        jButton5.setText("Calificar");

        tblPC.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Select", "id", "nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane5.setViewportView(tblPC);

        jLabel39.setText("Prendas del Conjunto");

        jSlider2.setMaximum(5);
        jSlider2.setMinimum(1);
        jSlider2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jSlider2StateChanged(evt);
            }
        });

        jLabel40.setText("Calificar Prendas Seleccionadas");

        jButton6.setText("Calificar");

        jButton7.setText("Ingresar Defectos");

        jButton8.setText("Compartir Seleccionadas");

        jButton9.setText("Enviar a Lavar Seleccionadas");

        jButton10.setText("Enviar Conjunto a Lavar");

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextField1)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel13Layout.createSequentialGroup()
                                .addComponent(ejm)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(calificacionConjunto, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton4))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel39)
                            .addComponent(jSlider2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jButton6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel13Layout.createSequentialGroup()
                                    .addComponent(jLabel40)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(calificacionPrendaConjunto, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 284, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton4)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(calificacionConjunto, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(ejm, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton5)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel39)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jButton7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton10)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSlider2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel40, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(calificacionPrendaConjunto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton6)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout Buscador_ConjuntosLayout = new javax.swing.GroupLayout(Buscador_Conjuntos);
        Buscador_Conjuntos.setLayout(Buscador_ConjuntosLayout);
        Buscador_ConjuntosLayout.setHorizontalGroup(
            Buscador_ConjuntosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Buscador_ConjuntosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(Buscador_ConjuntosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(Buscador_ConjuntosLayout.createSequentialGroup()
                        .addGroup(Buscador_ConjuntosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel34)
                            .addComponent(jLabel35))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(Buscador_ConjuntosLayout.createSequentialGroup()
                        .addGroup(Buscador_ConjuntosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel36)
                            .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        Buscador_ConjuntosLayout.setVerticalGroup(
            Buscador_ConjuntosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Buscador_ConjuntosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel35)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(Buscador_ConjuntosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(Buscador_ConjuntosLayout.createSequentialGroup()
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(55, Short.MAX_VALUE))
        );

        OpcionesUsuario.addTab("", new javax.swing.ImageIcon(getClass().getResource("/icono/icono-buscar-conjuntos.png")), Buscador_Conjuntos); // NOI18N

        Dar_Baja.setToolTipText("Dar de Baja");

        jLabel41.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel41.setText("Sistema de Baja de Prendas");

        jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jTable6.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Select", "Id", "Nombre", "Tipo", "Num Defectos"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jTable6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable6MouseClicked(evt);
            }
        });
        jScrollPane6.setViewportView(jTable6);

        Orden.add(jRadioButton12);
        jRadioButton12.setText("Descendente");

        Orden.add(jRadioButton13);
        jRadioButton13.setText("Ascendente");
        jRadioButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton13ActionPerformed(evt);
            }
        });

        jButton21.setText("Enviar a Baja");

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(jButton21)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jRadioButton13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton12))
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButton12)
                    .addComponent(jRadioButton13)
                    .addComponent(jButton21))
                .addContainerGap())
        );

        jPanel16.setBackground(new java.awt.Color(204, 204, 204));

        fotoPrendaBaja.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        fotoPrendaBaja.setText("Foto");

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(fotoPrendaBaja, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(fotoPrendaBaja, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jTable7.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Defecto", "Grado", "Solucion"
            }
        ));
        jScrollPane7.setViewportView(jTable7);

        jLabel42.setText("Detalles de Defectos");

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addComponent(jLabel42)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel42)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel19.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel47.setText("Sugerencias de Baja");

        Baja.add(jRadioButton7);
        jRadioButton7.setText("Cambio de Detalles");

        Baja.add(jRadioButton8);
        jRadioButton8.setText("Apreciacion");

        jButton16.setText("Buscar");

        Baja.add(jRadioButton9);
        jRadioButton9.setText("Mixta");

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jRadioButton9)
                            .addComponent(jRadioButton8)
                            .addComponent(jLabel47)
                            .addComponent(jRadioButton7))
                        .addGap(0, 9, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel47)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 2, Short.MAX_VALUE)
                .addComponent(jRadioButton9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton16)
                .addContainerGap())
        );

        jPanel20.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jTable9.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Id", "Nombre", "Tipo", "Defectos"
            }
        ));
        jScrollPane9.setViewportView(jTable9);

        jLabel48.setText("Prendar a dar de Baja");

        jButton11.setText("Dar de Baja las Prendas Seleccionadas");

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addComponent(jLabel48)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel48)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton11)
                .addContainerGap())
        );

        javax.swing.GroupLayout Dar_BajaLayout = new javax.swing.GroupLayout(Dar_Baja);
        Dar_Baja.setLayout(Dar_BajaLayout);
        Dar_BajaLayout.setHorizontalGroup(
            Dar_BajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Dar_BajaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(Dar_BajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(Dar_BajaLayout.createSequentialGroup()
                        .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(Dar_BajaLayout.createSequentialGroup()
                        .addComponent(jLabel41)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(Dar_BajaLayout.createSequentialGroup()
                        .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        Dar_BajaLayout.setVerticalGroup(
            Dar_BajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(Dar_BajaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel41)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(Dar_BajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(Dar_BajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel20, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(47, Short.MAX_VALUE))
        );

        OpcionesUsuario.addTab("", new javax.swing.ImageIcon(getClass().getResource("/icono/icono-dar-baja.png")), Dar_Baja); // NOI18N

        Lavanderia.setToolTipText("Lavanderia");

        jLabel44.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel44.setText("Lavanderia");

        jPanel17.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tblLavanderia.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Select", "Id", "Nombre", "Tipo", "Color", "Numero Lavados", "Fecha Lavado", "Dias Restantes"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        tblLavanderia.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblLavanderiaMouseClicked(evt);
            }
        });
        jScrollPane8.setViewportView(tblLavanderia);

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane8)
                .addContainerGap())
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel18.setBackground(new java.awt.Color(204, 204, 204));

        FOTOlavanderia.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        FOTOlavanderia.setText("Foto");

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOlavanderia, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOlavanderia, javax.swing.GroupLayout.DEFAULT_SIZE, 286, Short.MAX_VALUE)
                .addContainerGap())
        );

        jButton12.setText("Devolver al Usuario Prendas Seleccionadas");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout LavanderiaLayout = new javax.swing.GroupLayout(Lavanderia);
        Lavanderia.setLayout(LavanderiaLayout);
        LavanderiaLayout.setHorizontalGroup(
            LavanderiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(LavanderiaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(LavanderiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(LavanderiaLayout.createSequentialGroup()
                        .addComponent(jLabel44)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(LavanderiaLayout.createSequentialGroup()
                        .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 158, Short.MAX_VALUE)
                        .addComponent(jButton12)))
                .addContainerGap())
        );
        LavanderiaLayout.setVerticalGroup(
            LavanderiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, LavanderiaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(LavanderiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(LavanderiaLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton12))
                    .addGroup(LavanderiaLayout.createSequentialGroup()
                        .addComponent(jLabel44)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );

        OpcionesUsuario.addTab("", new javax.swing.ImageIcon(getClass().getResource("/icono/icono-lavanderia.png")), Lavanderia); // NOI18N

        Claisificador.setToolTipText("Busqueda por Clasificadores");

        jPanel22.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel52.setText("Registro de Prendas");

        jLabel53.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel53.setText("Nombre:");

        jLabel54.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel54.setText("Tipo Prenda:");

        jLabel55.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel55.setText("Color");

        jPanel23.setBackground(new java.awt.Color(204, 204, 204));

        FOTOprenda.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        FOTOprenda.setText("Foto");
        FOTOprenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                FOTOprendaMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(FOTOprenda, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FOTOprenda, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jButton18.setText("Guardar y Medir");
        jButton18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton18MouseClicked(evt);
            }
        });
        jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });

        txtTipoPrenda.setEditable(false);

        txtColorP.setEditable(false);
        txtColorP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtColorPActionPerformed(evt);
            }
        });

        comboTipoPrenda.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboTipoPrenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboTipoPrendaMouseClicked(evt);
            }
        });

        comboColores.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboColores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboColoresMouseClicked(evt);
            }
        });

        btnActualizarFotoUsuario1.setText("Subir Foto Prenda");
        btnActualizarFotoUsuario1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActualizarFotoUsuario1ActionPerformed(evt);
            }
        });

        btListaPrendas.setText("Ver Prendas Todas");
        btListaPrendas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btListaPrendasMouseClicked(evt);
            }
        });
        btListaPrendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btListaPrendasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel52)
                            .addGroup(jPanel22Layout.createSequentialGroup()
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel54, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel53, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel55, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel22Layout.createSequentialGroup()
                                        .addComponent(txtTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(comboTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel22Layout.createSequentialGroup()
                                        .addComponent(txtColorP, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(comboColores, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(txtDescripcionPrenda, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel22Layout.createSequentialGroup()
                                .addGap(50, 50, 50)
                                .addComponent(jButton18))))
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addGap(40, 40, 40)
                        .addComponent(btListaPrendas, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(btnActualizarFotoUsuario1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel22Layout.createSequentialGroup()
                                .addComponent(jLabel52)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel53)
                                    .addComponent(txtDescripcionPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel54)
                                    .addComponent(txtTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboTipoPrenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel22Layout.createSequentialGroup()
                                .addGap(78, 78, 78)
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txtColorP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel55))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton18)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnActualizarFotoUsuario1)
                    .addComponent(btListaPrendas))
                .addGap(18, 18, 18))
        );

        jPanel24.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel57.setText("Registro de Tipo");

        jLabel58.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel58.setText("Descripcion:");

        jLabel59.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel59.setText("Ubicacion:");

        comboUbicacionesMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboUbicacionesMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboUbicacionesMayMouseClicked(evt);
            }
        });
        comboUbicacionesMay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboUbicacionesMayActionPerformed(evt);
            }
        });

        btnGuardaTipoPrendaConUbicacion.setText("Guardar");
        btnGuardaTipoPrendaConUbicacion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnGuardaTipoPrendaConUbicacionMouseClicked(evt);
            }
        });

        txtUbicacionMay.setEditable(false);

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel24Layout.createSequentialGroup()
                        .addComponent(jLabel57)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel24Layout.createSequentialGroup()
                        .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel59, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel58, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtTipoDescripcionMay)
                            .addGroup(jPanel24Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(txtUbicacionMay, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(comboUbicacionesMay, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnGuardaTipoPrendaConUbicacion)))
                .addContainerGap())
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel57)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel58)
                    .addComponent(txtTipoDescripcionMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel59)
                    .addComponent(comboUbicacionesMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtUbicacionMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnGuardaTipoPrendaConUbicacion)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel25.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel60.setText("Registro de Atributos");

        jLabel61.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel61.setText("Descripcion:");

        jLabel62.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel62.setText("Tipo que Aplica:");

        btnAtributoyTipo.setText("Guardar");
        btnAtributoyTipo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnAtributoyTipoMouseClicked(evt);
            }
        });

        comboTipoPrendaMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboTipoPrendaMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboTipoPrendaMayMouseClicked(evt);
            }
        });
        comboTipoPrendaMay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboTipoPrendaMayActionPerformed(evt);
            }
        });

        txtIDcategoriaMay1.setEditable(false);

        javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel25Layout.createSequentialGroup()
                        .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel61, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel62, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel25Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtAtributoMay))
                            .addGroup(jPanel25Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(txtIDcategoriaMay1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(comboTipoPrendaMay, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(jPanel25Layout.createSequentialGroup()
                        .addComponent(jLabel60)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel25Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnAtributoyTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel60)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel61)
                    .addComponent(txtAtributoMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel62)
                    .addComponent(comboTipoPrendaMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtIDcategoriaMay1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnAtributoyTipo)
                .addContainerGap())
        );

        jPanel26.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel63.setText("Registro de Clasificadores");

        jLabel64.setText("Descripcion:");

        btnGuardaClasificadores.setText("Guardar");
        btnGuardaClasificadores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnGuardaClasificadoresMouseClicked(evt);
            }
        });
        btnGuardaClasificadores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardaClasificadoresActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);
        jPanel26.setLayout(jPanel26Layout);
        jPanel26Layout.setHorizontalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel63)
                    .addGroup(jPanel26Layout.createSequentialGroup()
                        .addComponent(jLabel64)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtclasificador, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnGuardaClasificadores)
                .addGap(20, 20, 20))
        );
        jPanel26Layout.setVerticalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel63)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel64)
                    .addComponent(txtclasificador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
                .addComponent(btnGuardaClasificadores)
                .addContainerGap())
        );

        jPanel27.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel65.setText("Registro de Valores");

        jLabel66.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel66.setText("Clasificador:");

        jLabel67.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel67.setText("Valor:");

        txtIDclasificaMay1.setEditable(false);

        comboClasificadoresMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboClasificadoresMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboClasificadoresMayMouseClicked(evt);
            }
        });

        btnGuardaValores.setText("Guardar");
        btnGuardaValores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnGuardaValoresMouseClicked(evt);
            }
        });
        btnGuardaValores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardaValoresActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27);
        jPanel27.setLayout(jPanel27Layout);
        jPanel27Layout.setHorizontalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel27Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel27Layout.createSequentialGroup()
                        .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel67, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel66, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel27Layout.createSequentialGroup()
                                .addComponent(txtIDclasificaMay1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(comboClasificadoresMay, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(txtvalor))
                        .addContainerGap())
                    .addGroup(jPanel27Layout.createSequentialGroup()
                        .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel65)
                            .addGroup(jPanel27Layout.createSequentialGroup()
                                .addGap(63, 63, 63)
                                .addComponent(btnGuardaValores)))
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        jPanel27Layout.setVerticalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel27Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel65)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel66)
                    .addComponent(txtIDclasificaMay1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboClasificadoresMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel67)
                    .addComponent(txtvalor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnGuardaValores))
        );

        jPanel28.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel68.setText("Asignar Clasificador a Categoria");

        jLabel69.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel69.setText("Clasificador:");

        jLabel70.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel70.setText("Categoria:");

        txtIDclasificaMay2.setEditable(false);

        txtIDcategoriaMay.setEditable(false);

        ComboTipoPrendaOtroMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        ComboTipoPrendaOtroMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ComboTipoPrendaOtroMayMouseClicked(evt);
            }
        });

        comboClasificadorOTroMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboClasificadorOTroMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboClasificadorOTroMayMouseClicked(evt);
            }
        });

        btnClasificadorPrenda.setText("Guardar");
        btnClasificadorPrenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnClasificadorPrendaMouseClicked(evt);
            }
        });
        btnClasificadorPrenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnClasificadorPrendaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28);
        jPanel28.setLayout(jPanel28Layout);
        jPanel28Layout.setHorizontalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel28Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel68)
                    .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(btnClasificadorPrenda)
                        .addGroup(jPanel28Layout.createSequentialGroup()
                            .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jLabel70, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel69, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(jPanel28Layout.createSequentialGroup()
                                    .addComponent(txtIDcategoriaMay, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(ComboTipoPrendaOtroMay, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGroup(jPanel28Layout.createSequentialGroup()
                                    .addComponent(txtIDclasificaMay2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(comboClasificadorOTroMay, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel28Layout.setVerticalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel28Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel68)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel69)
                    .addGroup(jPanel28Layout.createSequentialGroup()
                        .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboClasificadorOTroMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtIDclasificaMay2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ComboTipoPrendaOtroMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtIDcategoriaMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel70))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnClasificadorPrenda)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel29.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tablaFinalPrendas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Select", "Id", "Nombre", "Tipo"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane10.setViewportView(tablaFinalPrendas);

        jLabel56.setText("Asignacion de Valores de Clasificadores a Prendas");

        jLabel71.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel71.setText("Clasificador:");

        jLabel72.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel72.setText("Valor:");

        comboClasificadorAbajoMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboClasificadorAbajoMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboClasificadorAbajoMayMouseClicked(evt);
            }
        });

        comboValoresMay.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        comboValoresMay.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                comboValoresMayMouseClicked(evt);
            }
        });

        jButton19.setText("Asignar Clasificador a Seleccionados");

        txtclasificadorAbajoMay.setEditable(false);

        txtIDvalorMay.setEditable(false);

        javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);
        jPanel29.setLayout(jPanel29Layout);
        jPanel29Layout.setHorizontalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane10)
                    .addGroup(jPanel29Layout.createSequentialGroup()
                        .addComponent(jLabel56)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel29Layout.createSequentialGroup()
                        .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel72, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel71, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(comboClasificadorAbajoMay, 0, 100, Short.MAX_VALUE)
                            .addComponent(comboValoresMay, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel29Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jButton19))
                            .addGroup(jPanel29Layout.createSequentialGroup()
                                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtclasificadorAbajoMay, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtIDvalorMay, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(0, 0, Short.MAX_VALUE)))))
                .addContainerGap())
        );
        jPanel29Layout.setVerticalGroup(
            jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel29Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel56)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel29Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel71)
                            .addComponent(comboClasificadorAbajoMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtclasificadorAbajoMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel72)
                            .addComponent(comboValoresMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtIDvalorMay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap(68, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel29Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton19)
                        .addContainerGap())))
        );

        javax.swing.GroupLayout ClaisificadorLayout = new javax.swing.GroupLayout(Claisificador);
        Claisificador.setLayout(ClaisificadorLayout);
        ClaisificadorLayout.setHorizontalGroup(
            ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ClaisificadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(ClaisificadorLayout.createSequentialGroup()
                        .addGroup(ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ClaisificadorLayout.createSequentialGroup()
                                .addComponent(jPanel26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                            .addComponent(jPanel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        ClaisificadorLayout.setVerticalGroup(
            ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ClaisificadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(ClaisificadorLayout.createSequentialGroup()
                        .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(ClaisificadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel26, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel28, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        OpcionesUsuario.addTab("", new javax.swing.ImageIcon(getClass().getResource("/icono/icono-clasificador.png")), Claisificador); // NOI18N

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Sistema de Usuarios");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(163, 163, 163))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(OpcionesUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 770, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(OpcionesUsuario)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void comboUbicacionesMayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboUbicacionesMayActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_comboUbicacionesMayActionPerformed

    private void btnActualizarFotoUsuario1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarFotoUsuario1ActionPerformed
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setFileFilter(new FileNameExtensionFilter("Archivo de Imagen", "jpg"));
        fileChooser.setCurrentDirectory(new java.io.File("e:/imagenes_tmp/"));
        int result = fileChooser.showOpenDialog(null);
        if (result == JFileChooser.APPROVE_OPTION) {
            //obtiene ruta del archivo
            ruta = fileChooser.getSelectedFile().getAbsolutePath();

        }
    }//GEN-LAST:event_btnActualizarFotoUsuario1ActionPerformed
    public void actualizaUsers() {
        unduenio.buscar(cedula_usuario_actual);
        txtCedulaUsuario.setText(unduenio.getCedula());
        txtApodoUsuario.setText(unduenio.getApodo());
        txtGeneroUsuario.setText(Integer.toString(unduenio.getGenero().getId()));
        txtFechaUser.setText(unduenio.getFecha_nacimiento().toString());
    }

    private void comboColoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboColoresMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboColores.getSelectedItem(), ",");
        try {
            txtColorP.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboColoresMouseClicked

    private void comboTipoPrendaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboTipoPrendaMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboTipoPrenda.getSelectedItem(), ",");
        try {
            txtTipoPrenda.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboTipoPrendaMouseClicked

    private void txtColorPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtColorPActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtColorPActionPerformed

    private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton18ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton18ActionPerformed

    private void jButton18MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton18MouseClicked
        if (txtDescripcionPrenda.getText().equals("") || txtTipoPrenda.getText().equals("") || txtColorP.getText().equals("")) {
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        } else {
            unaPrenda.setNombre(txtDescripcionPrenda.getText());

            //DUENIOS
            if (unduenio.buscar(cedula_usuario_actual) == false) {
                JOptionPane.showMessageDialog(null, "el objeto usuario no existe");
            }
            unaPrenda.setUsuario(unduenio);
            JOptionPane.showMessageDialog(null, unaPrenda.getUsuario().getApodo());
            //----------------------------

            // ESTO ES PARA GUARDAR EL OBJETO COLOR EN LA CLASE PRENDA
            if (unColor.buscar(Integer.parseInt(txtColorP.getText())) == false) {
                JOptionPane.showMessageDialog(null, "el objeto color no existe");
            }
            unaPrenda.setColor(unColor);
            // ---------------------

            // ESTO ES PARA GUARDAR EL OBJETO ESTADO EN LA CLASE PRENDA
            int disponible = 2;
            if (unEstado.buscar(disponible) == false) {
                JOptionPane.showMessageDialog(null, "el objeto Estado no existe");
            }
            unaPrenda.setEstado_prenda(unEstado);
            //------------------

            // PARA SACAR TIPOS
            if (unTipo.buscar((Integer.parseInt(txtTipoPrenda.getText()))) == false) {
                JOptionPane.showMessageDialog(null, "el objeto tipo_prenda no existe");
            }
            unaPrenda.setTipo_prenda(unTipo);
            //---------------


            boolean r = unaPrenda.grabar(ruta);
            if (r == true) {
                JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                unaPrenda.modificarFoto(ruta);  //agrega foto de u
                unaPrenda.buscarIDE(txtDescripcionPrenda.getText(), Integer.parseInt(txtTipoPrenda.getText()), Integer.parseInt(txtColorP.getText()));


                actualizarFotoPrenda(unaPrenda.getId());
                actualizaUltimaTabla();

            } else if (r == false) {
                JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
            }

        }

        // TODO add your handling code here:
    }//GEN-LAST:event_jButton18MouseClicked

    private void jSlider2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSlider2StateChanged
        calificacionPrendaConjunto.setText(Integer.toString(jSlider2.getValue()));
    }//GEN-LAST:event_jSlider2StateChanged

    private void jSlider1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSlider1StateChanged
        calificacionConjunto.setText(Integer.toString(jSlider1.getValue()));
    }//GEN-LAST:event_jSlider1StateChanged

    private void jSlider3StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSlider3StateChanged
        lblCP.setText(Integer.toHexString(jSlider3.getValue()));
    }//GEN-LAST:event_jSlider3StateChanged

    private void btnHabilitarEdicionUsuarioMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHabilitarEdicionUsuarioMouseClicked
    }//GEN-LAST:event_btnHabilitarEdicionUsuarioMouseClicked
    private void btnGuardarRegistroUsuarioActionPerformed(java.awt.event.ActionEvent evt) {
    }

    private void btnHabilitarEdicionUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHabilitarEdicionUsuarioActionPerformed
        txtApodoUsuario.setEditable(true);
        // txtCedulaUsuario.setEditable(true);
        txtFechaUser.setEditable(true);
        txtGeneroUsuario.setEditable(true);
    }//GEN-LAST:event_btnHabilitarEdicionUsuarioActionPerformed

    private void btGuardarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btGuardarUsuarioActionPerformed
        unduenio.setCedula(txtCedulaUsuario.getText());
        unduenio.setApodo(txtApodoUsuario.getText());

        java.sql.Date fecFormatoDate = null;
        try {
            SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd", new Locale("es", "ES"));
            fecFormatoDate = new java.sql.Date(sdf.parse(txtFechaUser.getText()).getTime());
            System.out.println("Fecha con el formato java.sql.Date: " + fecFormatoDate);
            unduenio.setFecha_nacimiento(fecFormatoDate);
        } catch (Exception ex) {
            System.out.println("Error al obtener el formato de la fecha/hora: " + ex.getMessage());
        }

        if (unGenero.buscar(Integer.parseInt(txtGeneroUsuario.getText())) == false) {
            JOptionPane.showMessageDialog(null, "el objeto genero no existe");
        }
        unduenio.setGenero(unGenero);

        boolean modifica = unduenio.modificar();
        if (modifica == true) {
            JOptionPane.showMessageDialog(rootPane, "Datos Editados Satisfactoriamente");
            unduenio.modificarFoto(ruta);
            actualizarFotoUser(unduenio.getCedula());
            deshabilitacampos();
        } else {
            JOptionPane.showMessageDialog(rootPane, "Error al Modificar");
        }
    }//GEN-LAST:event_btGuardarUsuarioActionPerformed

    private void btnActualizarFotoUsuarioMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnActualizarFotoUsuarioMouseClicked
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setFileFilter(new FileNameExtensionFilter("Archivo de Imagen", "jpg"));
        fileChooser.setCurrentDirectory(new java.io.File("e:/imagenes_tmp/"));
        int result = fileChooser.showOpenDialog(null);
        if (result == JFileChooser.APPROVE_OPTION) {
            ruta = fileChooser.getSelectedFile().getAbsolutePath();
        }
    }//GEN-LAST:event_btnActualizarFotoUsuarioMouseClicked

    private void btnGuardarRegistroUsuarioMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGuardarRegistroUsuarioMouseClicked

        if (txtHombrosCinturaUsuario.getText().equals("") || txtCinturaRodillaUsuario.getText().equals("") || txtRodillaTobilloUsuario.getText().equals("")
                || txtCaderaUsuario.getText().equals("") || txtCinturaUsuario.getText().equals("") || txtPechoBustoUsuario.getText().equals("")
                || txtPesoUsuario.getText().equals("") || txtCalzadoUsuario.getText().equals("")) {
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        } else {
            if (unduenio.buscar(txtCedulaUsuario.getText()) == false) {
                JOptionPane.showMessageDialog(null, "el objeto usuario no existe");
            }
            registroM.setUsuario(unduenio);
            registroM.setPeso(Double.parseDouble(txtPesoUsuario.getText()));
            boolean r = registroM.grabar(ruta);
            if (r == true) {
                JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                registroM.buscarId(registroM.getPeso(), registroM.getUsuario().getCedula());

                String ced = registroM.getUsuario().getCedula();
                medidasU.grabar(registroM.getId(), 2, Integer.parseInt(txtHombrosCinturaUsuario.getText()), ced);
                medidasU.grabar(registroM.getId(), 3, Integer.parseInt(txtCinturaRodillaUsuario.getText()), ced);
                medidasU.grabar(registroM.getId(), 4, Integer.parseInt(txtRodillaTobilloUsuario.getText()), ced);
                medidasU.grabar(registroM.getId(), 5, Integer.parseInt(txtPechoBustoUsuario.getText()), ced);
                medidasU.grabar(registroM.getId(), 6, Integer.parseInt(txtCinturaUsuario.getText()), ced);
                medidasU.grabar(registroM.getId(), 7, Integer.parseInt(txtCaderaUsuario.getText()), ced);
                medidasU.grabar(registroM.getId(), 8, Integer.parseInt(txtCalzadoUsuario.getText()), ced);


            } else if (r == false) {
                JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
            }
        }
    }//GEN-LAST:event_btnGuardarRegistroUsuarioMouseClicked

    private void btnHistorialUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHistorialUsuarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnHistorialUsuarioActionPerformed

    private void txtHombrosCinturaUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtHombrosCinturaUsuarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtHombrosCinturaUsuarioActionPerformed

    private void btnHistorialUsuarioMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHistorialUsuarioMouseClicked
        ListadoRegistros li = new ListadoRegistros(cedula_usuario_actual);
        JFrame vli = new JFrame();
        vli.add(li);
        vli.setSize(500, 500);
        vli.setVisible(true);

        // TODO add your handling code here:
    }//GEN-LAST:event_btnHistorialUsuarioMouseClicked

    private void btListaPrendasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btListaPrendasMouseClicked
        ListaPrendas m = new ListaPrendas();
        m.setVisible(true);
    }//GEN-LAST:event_btListaPrendasMouseClicked

    private void btListaPrendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btListaPrendasActionPerformed
    }//GEN-LAST:event_btListaPrendasActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:



        prendasB = new BusquedaPrendas();

        if (rbt1.isSelected()) {
            prendasB.buscarPrendas(1, this.cedula_usuario_actual);
        } else if (rbt2.isSelected()) {
            prendasB.buscarPrendas(2, this.cedula_usuario_actual);
        } else if (rbt3.isSelected()) {
            prendasB.buscarPrendas(3, this.cedula_usuario_actual);
        } else if (rbt4.isSelected()) {
            prendasB.buscarPrendas(4, this.cedula_usuario_actual);
        } else if (rbt5.isSelected()) {
            prendasB.buscarPrendas(5, this.cedula_usuario_actual);
        } else if (rbt6.isSelected()) {
            prendasB.buscarPrendas(6, this.cedula_usuario_actual);
        } else {
            prendasB.buscarPrendas(1, this.cedula_usuario_actual);
        }

        ArrayList prendas = new ArrayList();
        prendas = prendasB.getPrendasBusqueda();

        DefaultTableModel temp = (DefaultTableModel) tblBusquedaPrendas.getModel();
        for (int i = (tblBusquedaPrendas.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }

        for (int i = 0; i < prendas.size(); i++) {
            Busqueda_Prenda bp = new Busqueda_Prenda();
            bp = (Busqueda_Prenda) prendas.get(i);
            Object nuevo[] = {false, bp.getId(), bp.getDescripcion(), bp.getTipo(), bp.getEstado(),
                bp.getColor(), bp.getNum_usos(), bp.getUltimo_uso()};
            temp.addRow(nuevo);

            //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
        }

        tblBusquedaPrendas.setModel(temp);

    }//GEN-LAST:event_jButton1ActionPerformed

    private void OpcionesUsuarioFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_OpcionesUsuarioFocusGained
        actualizarFotoUser(txtCedulaUsuario.getText());
        BusquedaPrendasLavanderia prendasB = new BusquedaPrendasLavanderia();
        prendasB.buscarPrendas(this.cedula_usuario_actual);
        ArrayList prendas = new ArrayList();
        prendas = prendasB.getPrendasBusqueda();

        DefaultTableModel temp = (DefaultTableModel) tblLavanderia.getModel();
        for (int i = (tblLavanderia.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }

        for (int i = 0; i < prendas.size(); i++) {
            Busqueda_Prenda_Lavanderia bp = new Busqueda_Prenda_Lavanderia();
            bp = (Busqueda_Prenda_Lavanderia) prendas.get(i);
            Object nuevo[] = {false, bp.getId(), bp.getNombre(), bp.getTipo(), bp.getColor(),
                bp.getNum_lavado(), bp.getFecha_lavado(), bp.getDias_restantes()};
            temp.addRow(nuevo);
        }
        tblLavanderia.setModel(temp);
    }//GEN-LAST:event_OpcionesUsuarioFocusGained

    private void FOTOprendaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_FOTOprendaMouseClicked
        // TODO add your handling code here:
        actualizarFotoPrenda(unaPrenda.getId());////
    }//GEN-LAST:event_FOTOprendaMouseClicked

    private void tblLavanderiaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblLavanderiaMouseClicked
        String strResultado = tblLavanderia.getValueAt(
                tblLavanderia.getSelectedRow(), 1).toString();
        actualizarFotoPrendaLavanderia(Integer.parseInt(strResultado));
        //JOptionPane.showMessageDialog(rootPane, strResultado);
    }//GEN-LAST:event_tblLavanderiaMouseClicked

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        GregorianCalendar gcalendar = new GregorianCalendar();
        String tiempo = gcalendar.get(Calendar.HOUR) + ":" + gcalendar.get(Calendar.MINUTE) + ":" + gcalendar.get(Calendar.SECOND);
        unRegistro.setHora_fin(tiempo);
        //unRegistro.grabar();
    }//GEN-LAST:event_formWindowClosing

    private void comboGenerosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboGenerosMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboGeneros.getSelectedItem(), ",");
        try {
            txtGeneroUsuario.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
    }//GEN-LAST:event_comboGenerosMouseClicked

    private void comboClasificadorOTroMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboClasificadorOTroMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboClasificadorOTroMay.getSelectedItem(), ",");
        try {
            txtIDclasificaMay2.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboClasificadorOTroMayMouseClicked

    private void comboClasificadoresMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboClasificadoresMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboClasificadoresMay.getSelectedItem(), ",");
        try {
            txtIDclasificaMay1.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboClasificadoresMayMouseClicked

    private void btnGuardaValoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGuardaValoresMouseClicked
        if (txtIDclasificaMay1.getText().equals("") || txtvalor.getText().equals("")) {
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        } else {
            //-----------------------------
            if (miClasificador.buscar(Integer.parseInt(txtIDclasificaMay1.getText())) == false) {
                JOptionPane.showMessageDialog(null, "el objeto clasificador no existe");
            }
            unvalor.setClasificador(miClasificador);
            //-------------------------------

            unvalor.setDescripcion(txtvalor.getText());

            int generado = unvalor.retornarIde(unvalor.getClasificador().getId());
            if (generado != 0) {
                boolean r = unvalor.grabar(generado);
                if (r == true) {
                    JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                    //actualiza valores
                } else if (r == false) {
                    JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
                }
            }

        }

        // TODO add your handling code here:
    }//GEN-LAST:event_btnGuardaValoresMouseClicked

    private void btnGuardaValoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardaValoresActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnGuardaValoresActionPerformed

    private void btnGuardaClasificadoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGuardaClasificadoresMouseClicked
        if (txtclasificador.getText().equals("")) {
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        } else {
            miClasificador.setDescripcion(txtclasificador.getText());
            boolean r = miClasificador.grabar();
            if (r == true) {
                JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                actualizaCombosClasificadoresDeTodaVentana();
            } else if (r == false) {
                JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
            }
        }
    }//GEN-LAST:event_btnGuardaClasificadoresMouseClicked

    private void btnGuardaClasificadoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardaClasificadoresActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnGuardaClasificadoresActionPerformed

    private void ComboClasificadorGuardaRopaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ComboClasificadorGuardaRopaMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) ComboClasificadorGuardaRopa.getSelectedItem(), ",");
        try {
            txtIDClasificadorPanelGuardaRopa.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_ComboClasificadorGuardaRopaMouseClicked

    private void comboTipoPrendaMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboTipoPrendaMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboTipoPrendaMay.getSelectedItem(), ",");
        try {
            txtIDcategoriaMay1.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboTipoPrendaMayMouseClicked

    private void comboTipoPrendaMayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboTipoPrendaMayActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_comboTipoPrendaMayActionPerformed

    private void ComboTipoPrendaOtroMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ComboTipoPrendaOtroMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) ComboTipoPrendaOtroMay.getSelectedItem(), ",");
        try {
            txtIDcategoriaMay.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_ComboTipoPrendaOtroMayMouseClicked

    private void comboUbicacionesMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboUbicacionesMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboUbicacionesMay.getSelectedItem(), ",");
        try {
            txtUbicacionMay.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboUbicacionesMayMouseClicked

    private void comboClasificadorAbajoMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboClasificadorAbajoMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboClasificadorAbajoMay.getSelectedItem(), ",");
        try {
            txtclasificadorAbajoMay.setText(tokens.nextToken());
            accionarValores(Integer.parseInt(txtclasificadorAbajoMay.getText()));
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboClasificadorAbajoMayMouseClicked

    private void comboValoresMayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_comboValoresMayMouseClicked
        StringTokenizer tokens = new StringTokenizer((String) comboValoresMay.getSelectedItem(), ",");
        try {
            txtIDvalorMay.setText(tokens.nextToken());
        } catch (NoSuchElementException e) {
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_comboValoresMayMouseClicked

    private void btnGuardaTipoPrendaConUbicacionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGuardaTipoPrendaConUbicacionMouseClicked
        if (txtTipoDescripcionMay.getText().equals("") || txtUbicacionMay.getText().equals("")) {
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        } else {
            unTipo.setDescripcion(txtTipoDescripcionMay.getText());

            if (unaUbicacion.buscar(Integer.parseInt(txtUbicacionMay.getText())) == false) {
                JOptionPane.showMessageDialog(null, "el objeto ubicacion no existe");
            }
            unTipo.setUbicacion(unaUbicacion);

            boolean r = unTipo.grabar();
            if (r == true) {
                JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                actualizaComboTipos();
            } else if (r == false) {
                JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
            }

        }
        // TODO add your handling code here:
    }//GEN-LAST:event_btnGuardaTipoPrendaConUbicacionMouseClicked

    private void btnAtributoyTipoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnAtributoyTipoMouseClicked
if (txtAtributoMay.getText().equals("") ||txtIDcategoriaMay1.getText().equals("")){
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        }else {
     unatributo.setDescripcion(txtAtributoMay.getText());
     boolean p=unatributo.grabar();
     
     if (p == true) {              
     unatributo.buscarIDE(unatributo.getDescripcion());
    
    unarelacionatributoTipo.setAtributo(unatributo);
    
     if (unTipo.buscar(Integer.parseInt(txtIDcategoriaMay1.getText()))==false) {
                JOptionPane.showMessageDialog(null, "el objeto tipo no existe");            }
            unarelacionatributoTipo.setTipo_prenda(unTipo);
    
     boolean r = unarelacionatributoTipo.grabar();
                if (r == true) {
                    JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                   
                } else if (r == false) {
                    JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
                }
    }
    }
        
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAtributoyTipoMouseClicked

    private void btnClasificadorPrendaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnClasificadorPrendaMouseClicked
if (txtIDclasificaMay2.getText().equals("") ||txtIDcategoriaMay.getText().equals("")){
            JOptionPane.showMessageDialog(rootPane, "Complete todos los Campos!");
        }else {
    if (unTipo.buscar(Integer.parseInt(txtIDcategoriaMay.getText()))==false) {
                JOptionPane.showMessageDialog(null, "el objeto tipo no existe");            }
            unClasificaPrenda.setTipo(unTipo);
    
      if (miClasificador.buscar(Integer.parseInt(txtIDclasificaMay2.getText()))==false) {
                JOptionPane.showMessageDialog(null, "el objeto clasificador no existe");            }
            unClasificaPrenda.setClasificador(miClasificador);
    boolean r = unClasificaPrenda.grabar();
                if (r == true) {
                    JOptionPane.showMessageDialog(rootPane, "Datos Grabados Satisfactoriamente");
                   
                } else if (r == false) {
                    JOptionPane.showMessageDialog(rootPane, "Error al Grabar los Datos");
                }
}
        
        // TODO add your handling code here:
    }//GEN-LAST:event_btnClasificadorPrendaMouseClicked

    private void btnClasificadorPrendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnClasificadorPrendaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnClasificadorPrendaActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        ArrayList aDevolver = new ArrayList();
        for (int i = 0; i < tblLavanderia.getRowCount(); i++) {
            if (tblLavanderia.getValueAt(i, 0) == true) {
                aDevolver.add(tblLavanderia.getValueAt(i, 1));
            }
        }
        BaseDeDatosDB bd = new BaseDeDatosDB();
        try {
            bd.devolverPrenda(aDevolver);
        } catch (SQLException ex) {
            Logger.getLogger(VentanaUsuarios.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton12ActionPerformed

    private void OpcionesUsuarioFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_OpcionesUsuarioFocusLost
        this.FOTOprenda.removeAll();
    }//GEN-LAST:event_OpcionesUsuarioFocusLost
    ArrayList prendasSel = new ArrayList();
    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        // TODO add your handling code here:


        DefaultTableModel temp = (DefaultTableModel) tblBusquedaPrendas.getModel();
        DefaultTableModel temp2 = (DefaultTableModel) tblPrendasSelecionadas.getModel();

        for (int i = (tblBusquedaPrendas.getRowCount() - 1); i >= 0; i--) {
            if ((boolean) temp.getValueAt(i, 0) && (((String) temp.getValueAt(i, 4)).equalsIgnoreCase("disponible"))) {

                int val = 0;
                for (int j = 0; j < prendasSel.size(); j++) {
                    if (((int) temp.getValueAt(i, 1)) == ((Busqueda_Prenda) prendasSel.get(j)).getId()) {
                        val++;
                    }

                }
                if (val == 0) {
                    Busqueda_Prenda busP = (Busqueda_Prenda) prendasB.getPrendasBusqueda().get(i);
                    prendasSel.add(busP);

                    Object nuevo[] = {false, busP.getId(), busP.getDescripcion()};
                    temp2.addRow(nuevo);
                    //JOptionPane.showMessageDialog(null,busP.getId());

                }


            }
        }






        /*
         for (int i = 0; i < prendas.size(); i++) {
         Busqueda_Prenda bp = new Busqueda_Prenda();
         bp = (Busqueda_Prenda) prendas.get(i);
         Object nuevo[] = {false, bp.getId(), bp.getDescripcion(), bp.getTipo(), bp.getEstado(),
         bp.getColor(), bp.getNum_usos(), bp.getUltimo_uso()};
         temp.addRow(nuevo);

         //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
         }

         tblBusquedaPrendas.setModel(temp);*/

    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
        // TODO add your handling code here:



        DefaultTableModel temp = (DefaultTableModel) tblBusquedaPrendas.getModel();

        for (int i = (tblBusquedaPrendas.getRowCount() - 1); i >= 0; i--) {
            if ((boolean) temp.getValueAt(i, 0)) {

                int val = Integer.parseInt(lblCP.getText());
                BaseDeDatosDB busConDB = new BaseDeDatosDB();
                try {

                    busConDB.calificarPrenda(val, this.cedula_usuario_actual);
                } catch (SQLException ex) {
                    Logger.getLogger(VentanaUsuarios.class.getName()).log(Level.SEVERE, null, ex);
                }
                try {
                    busConDB.calificarPrenda2(val, this.cedula_usuario_actual, (int) temp.getValueAt(i, 1));
                } catch (SQLException ex) {
                    Logger.getLogger(VentanaUsuarios.class.getName()).log(Level.SEVERE, null, ex);
                }




            }
        }




    }//GEN-LAST:event_jButton14ActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
        // TODO add your handling code here:


        DefaultTableModel temp = (DefaultTableModel) tblPrendasUsuario.getModel();

        String ced = JOptionPane.showInputDialog("Ingrese cedula del usuario:");
        for (int i = (tblBusquedaPrendas.getRowCount() - 1); i >= 0; i--) {
            if ((boolean) temp.getValueAt(i, 0)) {


                BaseDeDatosDB busConDB = new BaseDeDatosDB();
                try {

                    busConDB.compartirPrenda(ced, (int) temp.getValueAt(i, 1));
                } catch (SQLException ex) {
                    Logger.getLogger(VentanaUsuarios.class.getName()).log(Level.SEVERE, null, ex);
                }

            }
        }


    }//GEN-LAST:event_jButton15ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:

        DefaultTableModel temp = (DefaultTableModel) tblPrendasSelecionadas.getModel();
        BaseDeDatosDB busConDB = new BaseDeDatosDB();
        String desc = JOptionPane.showInputDialog("Ingrese descripcion:");
        try {
            busConDB.grabarConjunto(this.cedula_usuario_actual, desc);
            busConDB.grabarConjuntoPrenda(this.cedula_usuario_actual);
        } catch (SQLException ex) {
            Logger.getLogger(VentanaUsuarios.class.getName()).log(Level.SEVERE, null, ex);
        }

        for (int i = (tblPrendasSelecionadas.getRowCount() - 1); i >= 0; i--) {
            if ((boolean) temp.getValueAt(i, 0)) {


                try {
                    busConDB.grabarPrendasConjunto((int) temp.getValueAt(i, 1));
                    busConDB.usarPrendas((int) temp.getValueAt(i, 1), this.cedula_usuario_actual);
                    actualizarConjuntosUsuarios();

                } catch (SQLException ex) {
                    Logger.getLogger(VentanaUsuarios.class.getName()).log(Level.SEVERE, null, ex);
                }

            }
        }



    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton20ActionPerformed
        // TODO add your handling code here:


        ArrayList prendasSel = new ArrayList();

        DefaultTableModel temp = (DefaultTableModel) tblBusquedaPrendas.getModel();
        for (int i = (tblBusquedaPrendas.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }


    }//GEN-LAST:event_jButton20ActionPerformed

    private void tblConjUsuarioMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblConjUsuarioMouseClicked
        // TODO add your handling code here:

        int id_conj = (int) tblConjUsuario.getValueAt(
                tblConjUsuario.getSelectedRow(), 0);

        JOptionPane.showMessageDialog(null, id_conj);


        try {
            BaseDeDatosDB busConDB = new BaseDeDatosDB();
            ArrayList pc = busConDB.buscarPrendaConjunto(id_conj);





            DefaultTableModel temp = (DefaultTableModel) tblPC.getModel();
            for (int i = (tblPC.getRowCount() - 1); i >= 0; i--) {
                temp.removeRow(i);
            }

            for (int i = 0; i < pc.size(); i++) {
                Prenda bp = new Prenda();
                bp = (Prenda) pc.get(i);
                Object nuevo[] = {false, bp.getId(), bp.getNombre()};
                temp.addRow(nuevo);

                //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
            }

            tblPC.setModel(temp);











        } catch (SQLException ex) {
            Logger.getLogger(BusquedaPrendas.class.getName()).log(Level.SEVERE, null, ex);
        }







    }//GEN-LAST:event_tblConjUsuarioMouseClicked

    private void jRadioButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton13ActionPerformed
        prendasD = new BusquedaPrendasDefectos();

        prendasD.buscarPrendas(this.cedula_usuario_actual);

        ArrayList prendas = new ArrayList();
        prendas = prendasD.getPrendasBusqueda();

        DefaultTableModel temp = (DefaultTableModel) jTable6.getModel();
        for (int i = (jTable6.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }

        for (int i = 0; i < prendas.size(); i++) {
            Busqueda_Prenda_Defectos bp = new Busqueda_Prenda_Defectos();
            bp = (Busqueda_Prenda_Defectos) prendas.get(i);
            Object nuevo[] = {false, bp.getId(), bp.getNombre(), bp.getTipo(), bp.getNum_defectos()};
            temp.addRow(nuevo);

            //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
        }
        jTable6.setModel(temp);
    }//GEN-LAST:event_jRadioButton13ActionPerformed

    private void jTable6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable6MouseClicked
        int id_p = (int) jTable6.getValueAt(
                jTable6.getSelectedRow(), 1);


        prendaDf = new BusquedaDefectosPrenda();
        prendaDf.buscarPrendas(id_p);

        ArrayList prendas = new ArrayList();
        prendas = prendaDf.getPrendasBusqueda();

        DefaultTableModel temp = (DefaultTableModel) jTable7.getModel();
        for (int i = (jTable7.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }

        for (int i = 0; i < prendas.size(); i++) {
            Busqueda_Defectos_Prenda bp = new Busqueda_Defectos_Prenda();
            bp = (Busqueda_Defectos_Prenda) prendas.get(i);
            Object nuevo[] = {false, bp.getDefecto(), bp.getGrado(), bp.getSolucion()};
            temp.addRow(nuevo);

            //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
        }
        jTable7.setModel(temp);
    }//GEN-LAST:event_jTable6MouseClicked

    public void actualizarConjuntosUsuarios() {
        BusquedaConjuntos prendasB = new BusquedaConjuntos();

        prendasB.buscarConjuntos(this.cedula_usuario_actual);

        ArrayList prendas = new ArrayList();
        prendas = prendasB.getConjuntosBusqueda();

        DefaultTableModel temp = (DefaultTableModel) tblConjUsuario.getModel();
        for (int i = (tblConjUsuario.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }

        for (int i = 0; i < prendas.size(); i++) {
            BusquedaConjunto bp = new BusquedaConjunto();
            bp = (BusquedaConjunto) prendas.get(i);
            Object nuevo[] = {bp.getId(), bp.getDescripcion(), bp.getUlt_calificacion(), bp.getUltimo_uso()
            };
            temp.addRow(nuevo);

            //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
        }

        tblPrendasUsuario.setModel(temp);

    }

    public void actualizarPrendasUsuario() {
        BusquedaPrendas prendasB = new BusquedaPrendas();

        prendasB.buscarPrendas(6, this.cedula_usuario_actual);

        ArrayList prendas = new ArrayList();
        prendas = prendasB.getPrendasBusqueda();

        DefaultTableModel temp = (DefaultTableModel) tblPrendasUsuario.getModel();
        for (int i = (tblPrendasUsuario.getRowCount() - 1); i >= 0; i--) {
            temp.removeRow(i);
        }

        for (int i = 0; i < prendas.size(); i++) {
            Busqueda_Prenda bp = new Busqueda_Prenda();
            bp = (Busqueda_Prenda) prendas.get(i);
            Object nuevo[] = {false, bp.getId(), bp.getDescripcion(), bp.getTipo(), bp.getEstado(),
                bp.getColor(), bp.getNum_usos(), bp.getUltimo_uso()};
            temp.addRow(nuevo);

            //JOptionPane.showMessageDialog(null,"id="+String.valueOf(bp.getId())+",descripcion="+bp.getDescripcion() );
        }

        tblPrendasUsuario.setModel(temp);

    }

    public void deshabilitacampos() {
        txtApodoUsuario.setEditable(false);
        txtFechaUser.setEditable(false);
        txtGeneroUsuario.setEditable(false);
    }

    public void accionarValores(int CODIGOseleccionado) {
        listavalores.listar(CODIGOseleccionado);
        ArrayList colores = new ArrayList();
        colores = listavalores.getValores();
        comboValoresMay.removeAllItems();
        comboValoresMay.addItem("");

        for (int i = 0; i < colores.size(); i++) {
            Valor otroValor = new Valor();
            otroValor = (Valor) colores.get(i);
            comboValoresMay.addItem(otroValor.getId() + ", " + otroValor.getDescripcion());
        }

    }

    public void actualizarFotoUser(String ced) {
        unduenio.buscar(ced);
        //redimensiona imagen
        double alto = unduenio.getFoto().getHeight(null) / Math.ceil(unduenio.getFoto().getHeight(null) / 170f);
        double ancho = unduenio.getFoto().getWidth(null) / Math.ceil(unduenio.getFoto().getWidth(null) / 175f);
        Icon icon = new ImageIcon(unduenio.getFoto().getScaledInstance((int) ancho, (int) alto, Image.SCALE_AREA_AVERAGING));
        this.FOTOuser.setText("");
        this.FOTOuser.setIcon(icon);
    }

    public void actualizaCombosClasificadoresDeTodaVentana() {// AQUI LES ACTUALIZO LOS TRES COMBOS
        listaClasificadores.listar();                          //DE CLASIFICADORES EN LA VENTANA EN 
        ArrayList tipos = new ArrayList();                       //TOTAL
        tipos = listaClasificadores.getClasificadores();

        comboClasificadorOTroMay.removeAllItems();
        comboClasificadoresMay.removeAllItems();
        ComboClasificadorGuardaRopa.removeAllItems();
        comboClasificadorAbajoMay.removeAllItems();

        comboClasificadorOTroMay.addItem("");
        comboClasificadoresMay.addItem("");
        ComboClasificadorGuardaRopa.addItem("");
        comboClasificadorAbajoMay.addItem("");

        for (int i = 0; i < tipos.size(); i++) {
            Clasificador otroClasificador = new Clasificador();
            otroClasificador = (Clasificador) tipos.get(i);
            comboClasificadorOTroMay.addItem(otroClasificador.getId() + ", " + otroClasificador.getDescripcion());
            comboClasificadoresMay.addItem(otroClasificador.getId() + ", " + otroClasificador.getDescripcion());
            ComboClasificadorGuardaRopa.addItem(otroClasificador.getId() + ", " + otroClasificador.getDescripcion());
            comboClasificadorAbajoMay.addItem(otroClasificador.getId() + ", " + otroClasificador.getDescripcion());
        }
    }

    public void actualizaComboTipos() {
        listatipos.listar();
        ArrayList tipos = new ArrayList();
        tipos = listatipos.getTipos();
        comboTipoPrenda.removeAllItems();
        comboTipoPrendaMay.removeAllItems();
        ComboTipoPrendaOtroMay.removeAllItems();

        comboTipoPrenda.addItem("");
        comboTipoPrendaMay.addItem("");
        ComboTipoPrendaOtroMay.addItem("");
        for (int i = 0; i < tipos.size(); i++) {
            Tipo_Prenda otroTipo = new Tipo_Prenda();
            otroTipo = (Tipo_Prenda) tipos.get(i);
            comboTipoPrenda.addItem(otroTipo.getId() + ", " + otroTipo.getDescripcion());
            comboTipoPrendaMay.addItem(otroTipo.getId() + ", " + otroTipo.getDescripcion());
            ComboTipoPrendaOtroMay.addItem(otroTipo.getId() + ", " + otroTipo.getDescripcion());
        }
    }

    public void actualizaComboColores() {
        listaColores.listar();
        ArrayList colores = new ArrayList();
        colores = listaColores.getColores();
        comboColores.removeAllItems();
        comboColores.addItem("");

        for (int i = 0; i < colores.size(); i++) {
            Color_Prenda otraPrenda = new Color_Prenda();
            otraPrenda = (Color_Prenda) colores.get(i);
            comboColores.addItem(otraPrenda.getId() + ", " + otraPrenda.getColor());
        }
    }

    public void actualizaComboUbicaciones() {
        listaUbicaciones.listar();
        ArrayList ubicaciones = new ArrayList();
        ubicaciones = listaUbicaciones.getUbicaciones();
        comboUbicacionesMay.removeAllItems();
        comboUbicacionesMay.addItem("");

        for (int i = 0; i < ubicaciones.size(); i++) {
            ubicacion otraUbicaciones = new ubicacion();
            otraUbicaciones = (ubicacion) ubicaciones.get(i);
            comboUbicacionesMay.addItem(otraUbicaciones.getId() + ", " + otraUbicaciones.getDescripcion());
        }
    }

    public void actualizarFotoPrenda(int ced) {
        unaPrenda.buscar(ced);
        //redimensiona imagen
        double alto = unaPrenda.getFoto().getHeight(null) / Math.ceil(unaPrenda.getFoto().getHeight(null) / 170f);
        double ancho = unaPrenda.getFoto().getWidth(null) / Math.ceil(unaPrenda.getFoto().getWidth(null) / 175f);
        Icon icon = new ImageIcon(unaPrenda.getFoto().getScaledInstance((int) ancho, (int) alto, Image.SCALE_AREA_AVERAGING));
        this.FOTOprenda.setText("");
        this.FOTOprenda.setIcon(icon);
    }

    public void actualizarFotoPrendaLavanderia(int ced) {
        unaPrenda.buscar(ced);
        double alto = unaPrenda.getFoto().getHeight(null) / Math.ceil(unaPrenda.getFoto().getHeight(null) / 170f);
        double ancho = unaPrenda.getFoto().getWidth(null) / Math.ceil(unaPrenda.getFoto().getWidth(null) / 175f);
        Icon icon = new ImageIcon(unaPrenda.getFoto().getScaledInstance((int) ancho, (int) alto, Image.SCALE_AREA_AVERAGING));
        this.FOTOlavanderia.setText("");
        this.FOTOlavanderia.setIcon(icon);
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaUsuarios().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup Baja;
    private javax.swing.JPanel Buscador_Conjuntos;
    private javax.swing.JPanel Buscador_Prendas;
    private javax.swing.JPanel Claisificador;
    private javax.swing.JComboBox ComboClasificadorGuardaRopa;
    private javax.swing.JComboBox ComboTipoPrendaOtroMay;
    private javax.swing.JPanel Configurar_Perfil;
    private javax.swing.JPanel Dar_Baja;
    private javax.swing.ButtonGroup Defectos;
    private javax.swing.JLabel FOTOconjunto;
    private javax.swing.JLabel FOTOlavanderia;
    private javax.swing.JLabel FOTOprenda;
    private javax.swing.JLabel FOTOprendaBUSQUEDAS;
    private javax.swing.JLabel FOTOuser;
    private javax.swing.JPanel Lavanderia;
    private javax.swing.JTabbedPane OpcionesUsuario;
    private javax.swing.ButtonGroup Orden;
    private javax.swing.ButtonGroup TipoPrenda;
    private javax.swing.JButton btGuardarUsuario;
    private javax.swing.JButton btListaPrendas;
    private javax.swing.JButton btnActualizarFotoUsuario;
    private javax.swing.JButton btnActualizarFotoUsuario1;
    private javax.swing.JButton btnAtributoyTipo;
    private javax.swing.JButton btnClasificadorPrenda;
    private javax.swing.JButton btnGuardaClasificadores;
    private javax.swing.JButton btnGuardaTipoPrendaConUbicacion;
    private javax.swing.JButton btnGuardaValores;
    private javax.swing.JButton btnGuardarRegistroUsuario;
    private javax.swing.JButton btnHabilitarEdicionUsuario;
    private javax.swing.JButton btnHistorialUsuario;
    private javax.swing.JLabel calificacionConjunto;
    private javax.swing.JLabel calificacionPrendaConjunto;
    private javax.swing.JComboBox comboClasificadorAbajoMay;
    private javax.swing.JComboBox comboClasificadorOTroMay;
    private javax.swing.JComboBox comboClasificadoresMay;
    private javax.swing.JComboBox comboColores;
    private javax.swing.JComboBox comboGeneros;
    private javax.swing.JComboBox comboTipoPrenda;
    private javax.swing.JComboBox comboTipoPrendaMay;
    private javax.swing.JComboBox comboUbicacionesMay;
    private javax.swing.JComboBox comboValoresMay;
    private javax.swing.JLabel ejm;
    private javax.swing.JLabel fotoPrenda;
    private javax.swing.JLabel fotoPrendaBaja;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JRadioButton jRadioButton12;
    private javax.swing.JRadioButton jRadioButton13;
    private javax.swing.JRadioButton jRadioButton7;
    private javax.swing.JRadioButton jRadioButton8;
    private javax.swing.JRadioButton jRadioButton9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JSlider jSlider1;
    private javax.swing.JSlider jSlider2;
    private javax.swing.JSlider jSlider3;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable6;
    private javax.swing.JTable jTable7;
    private javax.swing.JTable jTable8;
    private javax.swing.JTable jTable9;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JLabel lblCP;
    private javax.swing.JPanel pnllPrendasUsuario;
    private javax.swing.JRadioButton rbt1;
    private javax.swing.JRadioButton rbt2;
    private javax.swing.JRadioButton rbt3;
    private javax.swing.JRadioButton rbt4;
    private javax.swing.JRadioButton rbt5;
    private javax.swing.JRadioButton rbt6;
    private javax.swing.JTable tablaFinalPrendas;
    private javax.swing.JTable tblBusquedaPrendas;
    private javax.swing.JTable tblConjUsuario;
    private javax.swing.JTable tblLavanderia;
    private javax.swing.JTable tblPC;
    private javax.swing.JTable tblPrendasSelecionadas;
    private javax.swing.JTable tblPrendasUsuario;
    private javax.swing.JTextField txtApodoUsuario;
    private javax.swing.JTextField txtAtributoMay;
    private javax.swing.JTextField txtCaderaUsuario;
    private javax.swing.JTextField txtCalzadoUsuario;
    private javax.swing.JTextField txtCedulaUsuario;
    private javax.swing.JTextField txtCinturaRodillaUsuario;
    private javax.swing.JTextField txtCinturaUsuario;
    private javax.swing.JTextField txtColorP;
    private javax.swing.JTextField txtDescripcionPrenda;
    private javax.swing.JTextField txtFechaRegistroMedida;
    private javax.swing.JTextField txtFechaUser;
    private javax.swing.JTextField txtGeneroUsuario;
    private javax.swing.JTextField txtHombrosCinturaUsuario;
    private javax.swing.JTextField txtIDClasificadorPanelGuardaRopa;
    private javax.swing.JTextField txtIDcategoriaMay;
    private javax.swing.JTextField txtIDcategoriaMay1;
    private javax.swing.JTextField txtIDclasificaMay1;
    private javax.swing.JTextField txtIDclasificaMay2;
    private javax.swing.JTextField txtIDvalorMay;
    private javax.swing.JTextField txtPechoBustoUsuario;
    private javax.swing.JTextField txtPesoUsuario;
    private javax.swing.JTextField txtRodillaTobilloUsuario;
    private javax.swing.JTextField txtTipoDescripcionMay;
    private javax.swing.JTextField txtTipoPrenda;
    private javax.swing.JTextField txtUbicacionMay;
    private javax.swing.JTextField txtclasificador;
    private javax.swing.JTextField txtclasificadorAbajoMay;
    private javax.swing.JTextField txtvalor;
    // End of variables declaration//GEN-END:variables

    public void actualizaComboGeneros() {
        listaGeneros.listar();
        ArrayList tipos = new ArrayList();
        tipos = listaGeneros.getGeneros();
        comboGeneros.removeAllItems();
        comboGeneros.addItem("");

        for (int i = 0; i < tipos.size(); i++) {
            Genero_Usuario otroGenero = new Genero_Usuario();
            otroGenero = (Genero_Usuario) tipos.get(i);
            comboGeneros.addItem(otroGenero.getId() + ", " + otroGenero.getDescripcion());
        }
    }

public void actualizaUltimaTabla() {
        listaPrendas.listarXUser(cedula_usuario_actual);
        
        ArrayList prendas = new ArrayList();
        prendas = listaPrendas.getPrendas();
        DefaultTableModel temp = (DefaultTableModel) tablaFinalPrendas.getModel();
        
        for (int i = tablaFinalPrendas.getRowCount() - 1; i >= 0; i--) {
            temp.removeRow(i);
        }
        for (int i = 0; i < prendas.size(); i++) {
            Prenda otraPrendita = new Prenda();
            otraPrendita = (Prenda) prendas.get(i);
            Object nuevo[] = {false,otraPrendita.getId(),otraPrendita.getNombre(),otraPrendita.getTipo_prenda().getDescripcion()}; //esto es por las tres columnas aunque puede variar
            temp.addRow(nuevo);
        }
        tablaFinalPrendas.setModel(temp);  
        }
}
